//
//  SubjectDetailCell.m
//  Wedding fantastic
//
//  Created by dllo on 15/7/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SubjectDetailCell.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation SubjectDetailCell
- (void)dealloc
{
    [_topImageView release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.topImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 340 * HEIGHT / 430)];
        [self.contentView addSubview:self.topImageView];
        [_topImageView release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 * WIDTH / 280, 350 * HEIGHT / 430, 200 * WIDTH / 280, 60 * HEIGHT / 430)];
        self.nameLabel.font = [UIFont systemFontOfSize:13];
        self.nameLabel.numberOfLines = 0;
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}

@end
